<div id="rightContent">
    <%= link_to 'Edit Basic Artist Information', edit_admin_artist_url(@artist), :class => 'largeButton' %>
    <%= link_to 'Add/Edit Description', new_admin_artist_artist_description_url(@artist), :class => 'largeButton' %>
    <%= link_to 'Add/Edit Media', new_admin_artist_media_url(@artist), {:class => 'largeButton'} %>
    <%= link_to 'Add/Edit Categories and Tags', '', {:class => 'largeButton'} %>
    <br />
    <%= link_to 'Publishing', { :controller => 'admin/artists', :action => 'publish', :id => @artist.id }, {:class => 'largeButton'} %>
    <br />
    <%= link_to 'Add New Artwork', new_admin_artist_artwork_url(@artist), {:class => 'largeButton' } %>
</div>
<div id="mainContent">
  <p class="pageTitle"><%=h Artist.l_attr(:viewing) + " - " +  @artist.name %></p>
  
  <fieldset><legend><%= Artist.l_attr(:basic)%></legend>
  <table class="center">
    <tr>
      <td class="tdRight">
        <label for="name">
          <%= Artist.l_attr('name')%>:
        </label>
      </td>
      <td>
        <%= @artist.name %>
      </td>
      
    </tr>
    <tr>
      <td class="tdRight">
        <label for="age">
          <%= Artist.l_attr('age')%>:
        </label>
      </td>
      <td>
        <%= @artist.age %>
      </td>
    </tr>

    <tr>
      <td class="tdRight">
        <label for="hometown">
          <%= Artist.l_attr('hometown')%>:
        </label>
      </td>
      <td>
        <%= @artist.hometown %>
      </td>
    </tr>
  
    <tr>
      <td class="tdRight">
        <label for="region">
          <%= Region.l_name.capitalize %>:
        </label>
      </td>
      <td>
        	<%= @artist.region.name %>
      </td>
    </tr>
  </table>
  </fieldset>
  
  <br />
		
  <fieldset><legend>Media</legend>
	<% if @artist.medias.size > 0 %>
  <table id='media_table'>
  <tr>
  	<th>Thumbnail</th>
  	<th>Caption</th>
  </tr>
  <%= render :partial => "admin/medias/show_media", :collection => @artist.medias %>
  </table>
  <% else %>
  This artist has no media yet.  Click the Add Media button to add some.
  <% end %>
  </fieldset>

  <br />
  
	<fieldset><legend>Personal Information</legend>
	<div>(Click the languages for details)</div>
	<% if @artist.artist_descriptions.size > 0 %>
	<table id='artist_description_table'>
	<%= render :partial => "admin/artist_descriptions/show_description", :collection => @artist.artist_descriptions %>
	</table>
	<% else %>
	This artist has no personal information yet.  Click the Add Personal Information button to add some.
	<% end %>
	</fieldset>
  
  <br />
  
  <fieldset><legend>Latest Artwork</legend>
    <% if @latest_artworks.size > 0 %>
      <% for artwork in @latest_artworks %>
      <div class="itemContainer">
          <div class="item">
              <%= link_to artwork.name, admin_artwork_path(artwork) %> - <%= artwork.created_at.strftime("%B %d, %Y") %>
          </div>
      </div>
      <% end %>
    <% else %>
      Artist has no artwork yet.
    <% end %>

    </fieldset>

</div>
